[INFO] cloning repository https://github.com/Benbellah-Owino/simpleneuralnetwork
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Benbellah-Owino/simpleneuralnetwork" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenbellah-Owino%2Fsimpleneuralnetwork", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenbellah-Owino%2Fsimpleneuralnetwork'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 62a7efa64f7bcb038ba693c8ce49bdbee419eb38
[INFO] fixing Benbellah-Owino/simpleneuralnetwork against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBenbellah-Owino%2Fsimpleneuralnetwork" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Benbellah-Owino/simpleneuralnetwork
[INFO] finished tweaking git repo https://github.com/Benbellah-Owino/simpleneuralnetwork
[INFO] tweaked toml for git repo https://github.com/Benbellah-Owino/simpleneuralnetwork written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Benbellah-Owino/simpleneuralnetwork on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Benbellah-Owino/simpleneuralnetwork already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded ndarray-rand v0.16.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] aac56851eecb3a31e5dd0a47c29447b162eb2a2a96ae9b859792a9d266e6edbc
[INFO] running `Command { std: "docker" "start" "aac56851eecb3a31e5dd0a47c29447b162eb2a2a96ae9b859792a9d266e6edbc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "aac56851eecb3a31e5dd0a47c29447b162eb2a2a96ae9b859792a9d266e6edbc" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "aac56851eecb3a31e5dd0a47c29447b162eb2a2a96ae9b859792a9d266e6edbc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "aac56851eecb3a31e5dd0a47c29447b162eb2a2a96ae9b859792a9d266e6edbc" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.182
[INFO] [stderr]    Compiling matrixmultiply v0.3.10
[INFO] [stderr]     Checking rand_core v0.10.0
[INFO] [stderr]     Checking num-complex v0.4.6
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking chacha20 v0.10.0
[INFO] [stderr]     Checking ndarray v0.17.2
[INFO] [stderr]     Checking getrandom v0.3.4
[INFO] [stderr]     Checking getrandom v0.4.2
[INFO] [stderr]     Checking rand_core v0.9.5
[INFO] [stderr]     Checking rand v0.10.0
[INFO] [stderr]     Checking rand_chacha v0.9.0
[INFO] [stderr]     Checking rand v0.9.2
[INFO] [stderr]     Checking rand_distr v0.5.1
[INFO] [stderr]     Checking ndarray-rand v0.16.0
[INFO] [stderr]     Checking simpleneuralnetwork v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: expected `;`, found keyword `use`
[INFO] [stdout]  --> src/main.rs:6:34
[INFO] [stdout]   |
[INFO] [stdout] 6 | use rand::{seq::SliceRandom, rng}
[INFO] [stdout]   |                                  ^ help: add `;` here
[INFO] [stdout] 7 | use rand::rngs::ThreadRng;
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected `;`, found keyword `use`
[INFO] [stdout]  --> src/main.rs:6:34
[INFO] [stdout]   |
[INFO] [stdout] 6 | use rand::{seq::SliceRandom, rng}
[INFO] [stdout]   |                                  ^ help: add `;` here
[INFO] [stdout] 7 | use rand::rngs::ThreadRng;
[INFO] [stdout]   | --- unexpected token
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ndarray::iter::Windows`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ndarray::iter::Windows;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rng`
[INFO] [stdout]  --> src/main.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::{Rng, RngExt};
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rand::rngs::ThreadRng`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use rand::rngs::ThreadRng;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/main.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |         ;
[INFO] [stdout]    |         ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ndarray::iter::Windows`
[INFO] [stdout]  --> src/main.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use ndarray::iter::Windows;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Rng`
[INFO] [stdout]  --> src/main.rs:5:12
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::{Rng, RngExt};
[INFO] [stdout]   |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `rand::rngs::ThreadRng`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use rand::rngs::ThreadRng;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary trailing semicolon
[INFO] [stdout]   --> src/main.rs:39:9
[INFO] [stdout]    |
[INFO] [stdout] 39 |         ;
[INFO] [stdout]    |         ^ help: remove this semicolon
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:116:13
[INFO] [stdout]     |
[INFO] [stdout] 116 |         for (x, y) in mini_batch.iter(){
[INFO] [stdout]     |             ^^^^^^    ----------------- this is an iterator with items of type `&f64`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected `f64`, found `(_, _)`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `f64`
[INFO] [stdout]               found tuple `(_, _)`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:116:13
[INFO] [stdout]     |
[INFO] [stdout] 116 |         for (x, y) in mini_batch.iter(){
[INFO] [stdout]     |             ^^^^^^    ----------------- this is an iterator with items of type `&f64`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected `f64`, found `(_, _)`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected type `f64`
[INFO] [stdout]               found tuple `(_, _)`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:154:30
[INFO] [stdout]     |
[INFO] [stdout] 154 |         activation = sigmoid(&z);
[INFO] [stdout]     |                      ------- ^^ expected `f64`, found `&ArrayBase<OwnedRepr<f64>, ..., f64>`
[INFO] [stdout]     |                      |
[INFO] [stdout]     |                      arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected type `f64`
[INFO] [stdout]             found reference `&ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/main.rs:202:4
[INFO] [stdout]     |
[INFO] [stdout] 202 | fn sigmoid(z: f64) -> f64{
[INFO] [stdout]     |    ^^^^^^^ ------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:154:30
[INFO] [stdout]     |
[INFO] [stdout] 154 |         activation = sigmoid(&z);
[INFO] [stdout]     |                      ------- ^^ expected `f64`, found `&ArrayBase<OwnedRepr<f64>, ..., f64>`
[INFO] [stdout]     |                      |
[INFO] [stdout]     |                      arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected type `f64`
[INFO] [stdout]             found reference `&ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/main.rs:202:4
[INFO] [stdout]     |
[INFO] [stdout] 202 | fn sigmoid(z: f64) -> f64{
[INFO] [stdout]     |    ^^^^^^^ ------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:154:22
[INFO] [stdout]     |
[INFO] [stdout] 147 |     let mut activation = x.clone();
[INFO] [stdout]     |                          --------- expected due to this value
[INFO] [stdout] ...
[INFO] [stdout] 154 |         activation = sigmoid(&z);
[INFO] [stdout]     |                      ^^^^^^^^^^^ expected `ArrayBase<OwnedRepr<f64>, ..., f64>`, found `f64`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>`
[INFO] [stdout]                  found type `f64`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:154:22
[INFO] [stdout]     |
[INFO] [stdout] 147 |     let mut activation = x.clone();
[INFO] [stdout]     |                          --------- expected due to this value
[INFO] [stdout] ...
[INFO] [stdout] 154 |         activation = sigmoid(&z);
[INFO] [stdout]     |                      ^^^^^^^^^^^ expected `ArrayBase<OwnedRepr<f64>, ..., f64>`, found `f64`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>`
[INFO] [stdout]                  found type `f64`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:160:81
[INFO] [stdout]     |
[INFO] [stdout] 160 |     let mut delta = self.cost_derivative(&activations[last], y) * sigmoid_prime(&zs[last]);
[INFO] [stdout]     |                                                                   ------------- ^^^^^^^^^ expected `f64`, found `&ArrayBase<OwnedRepr<f64>, ..., f64>`
[INFO] [stdout]     |                                                                   |
[INFO] [stdout]     |                                                                   arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected type `f64`
[INFO] [stdout]             found reference `&ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/main.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn sigmoid_prime(z: f64) -> f64{
[INFO] [stdout]     |    ^^^^^^^^^^^^^ ------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:160:81
[INFO] [stdout]     |
[INFO] [stdout] 160 |     let mut delta = self.cost_derivative(&activations[last], y) * sigmoid_prime(&zs[last]);
[INFO] [stdout]     |                                                                   ------------- ^^^^^^^^^ expected `f64`, found `&ArrayBase<OwnedRepr<f64>, ..., f64>`
[INFO] [stdout]     |                                                                   |
[INFO] [stdout]     |                                                                   arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected type `f64`
[INFO] [stdout]             found reference `&ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/main.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn sigmoid_prime(z: f64) -> f64{
[INFO] [stdout]     |    ^^^^^^^^^^^^^ ------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:166:32
[INFO] [stdout]     |
[INFO] [stdout] 166 |         let sp = sigmoid_prime(z);
[INFO] [stdout]     |                  ------------- ^ expected `f64`, found `&ArrayBase<OwnedRepr<f64>, ..., f64>`
[INFO] [stdout]     |                  |
[INFO] [stdout]     |                  arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected type `f64`
[INFO] [stdout]             found reference `&ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/main.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn sigmoid_prime(z: f64) -> f64{
[INFO] [stdout]     |    ^^^^^^^^^^^^^ ------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/main.rs:166:32
[INFO] [stdout]     |
[INFO] [stdout] 166 |         let sp = sigmoid_prime(z);
[INFO] [stdout]     |                  ------------- ^ expected `f64`, found `&ArrayBase<OwnedRepr<f64>, ..., f64>`
[INFO] [stdout]     |                  |
[INFO] [stdout]     |                  arguments to this function are incorrect
[INFO] [stdout]     |
[INFO] [stdout]     = note:   expected type `f64`
[INFO] [stdout]             found reference `&ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>`
[INFO] [stdout] note: function defined here
[INFO] [stdout]    --> src/main.rs:206:4
[INFO] [stdout]     |
[INFO] [stdout] 206 | fn sigmoid_prime(z: f64) -> f64{
[INFO] [stdout]     |    ^^^^^^^^^^^^^ ------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RngExt`
[INFO] [stdout]  --> src/main.rs:5:17
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::{Rng, RngExt};
[INFO] [stdout]   |                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RngExt`
[INFO] [stdout]  --> src/main.rs:5:17
[INFO] [stdout]   |
[INFO] [stdout] 5 | use rand::{Rng, RngExt};
[INFO] [stdout]   |                 ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eta`
[INFO] [stdout]   --> src/main.rs:78:82
[INFO] [stdout]    |
[INFO] [stdout] 78 |     pub fn SDG(&self,mut training_data: Input,epochs: u16, mini_batch_size: u16, eta: f64, test_data: Option<Input>){
[INFO] [stdout]    |                                                                                  ^^^ help: if this is intentional, prefix it with an underscore: `_eta`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `eta`
[INFO] [stdout]   --> src/main.rs:78:82
[INFO] [stdout]    |
[INFO] [stdout] 78 |     pub fn SDG(&self,mut training_data: Input,epochs: u16, mini_batch_size: u16, eta: f64, test_data: Option<Input>){
[INFO] [stdout]    |                                                                                  ^^^ help: if this is intentional, prefix it with an underscore: `_eta`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `simpleneuralnetwork` (bin "simpleneuralnetwork") due to 6 previous errors; 6 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `simpleneuralnetwork` (bin "simpleneuralnetwork" test) due to 6 previous errors; 6 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "aac56851eecb3a31e5dd0a47c29447b162eb2a2a96ae9b859792a9d266e6edbc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aac56851eecb3a31e5dd0a47c29447b162eb2a2a96ae9b859792a9d266e6edbc", kill_on_drop: false }`
[INFO] [stdout] aac56851eecb3a31e5dd0a47c29447b162eb2a2a96ae9b859792a9d266e6edbc
